import http from "@/utils/http";

// 文件目录信息
export const folderList = (params) => http.get("/linuxapi/folder/list", params);

// 创建目录
export const createDir = (data) =>
  http.post("/linuxapi/folder/create/dir", data);

// 删除目录
export const deleteDir = (data) =>
  http.post("/linuxapi/folder/delete/dir", data);

// 上传目录
export const uploadDir = (data, uploadProgress) =>
  http.upload("/linuxapi/folder/upload", data, uploadProgress);
